package udp.message;

/**
 * Generic library message
 * @author Alex
 *
 */
public class LibraryMessage extends UdpMessage {
	
	static final long serialVersionUID = 16L;
	
	protected LibraryMessageTypeEnum libraryMessageType;
	protected int sequence;
	protected String srcLibrary;
	protected String destLibrary;
	
	public LibraryMessage(){
		libraryMessageType = null;
	}
	
	public LibraryMessage(LibraryMessageTypeEnum action) {
		this.libraryMessageType = action;
	}
	
	public LibraryMessageTypeEnum setLibraryMessageType(LibraryMessageTypeEnum action){
		return action;
	}
	
	public LibraryMessageTypeEnum getLibraryMessageType(){
		return libraryMessageType;
	}

	public int getSequence() {
		return sequence;
	}

	public void setSequence(int sequence) {
		this.sequence = sequence;
	}
	
	public String getSrcLibrary() {
		return srcLibrary;
	}

	public void setSrcLibrary(String srcLibrary) {
		this.srcLibrary = srcLibrary;
	}

	public String getDestLibrary() {
		return destLibrary;
	}

	public void setDestLibrary(String destLibrary) {
		this.destLibrary = destLibrary;
	}

	@Override
	public String toString() {
		return "[LibraryMessage :: action='" + libraryMessageType + "']";
	}
	
}
